home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 6 / MacMania 6.toast / / Tools&Utilities / TouchMe 1.2□ / touchMe 1.2 Folder / touchMe source codes / CW11 PP source / source / touchMeConstants.h < prev    next >
Encoding:
Text File  |  1997-04-25  |  4.8 KB  |  165 lines  |  [TEXT/CWIE]

  1. // ==================================================
  2. //    touchMeConstants.h
  3. //    Copyright (C) 1996-1997 Mizutori Tetsuya
  4. //    July 4, 1996; February 3, 1997, April 22, 1997.
  5. // ==================================================
  6. //    All documents are pretty-printed in 10-point Geneva font.
  7.  
  8. #pragma once
  9.  
  10. #include <PP_Messages.h>
  11.  
  12. const    OSType    kThisApplicationCreatorType    = 'MzTm';
  13.  
  14.  
  15. // Message strings defined in touchMeCaptions.r
  16.  
  17. const ResIDT    rSTRx_TouchMe                = 1000;
  18. const ResIDT    rSTRx_Error                = 9000;
  19.  
  20. enum ErSTRx_TouchMe {
  21.     rSTRx_TouchMe_PrefFile                = 1,
  22.     rSTRx_puriTEXT_AppleGuide,
  23.     rSTRx_TouchMe_HelpMenu,
  24.     rSTRx_TouchMe_ChooseFile,
  25.     rSTRx_TouchMe_ChooseType,
  26.     rSTRx_TouchMe_ChooseCreator,
  27.     rSTRx_TouchMe_End
  28. };
  29.  
  30.  
  31. // Pane IDs
  32.  
  33. const PaneIDT    kNoPaneID                    = -1;
  34. const PaneIDT    kBadPaneID                = -1;
  35.  
  36. const ResIDT    rPPob_TouchMeMainWindow    = 1000;
  37. const ResIDT    rRidL_TouchMeMainWindow        = rPPob_TouchMeMainWindow;
  38.  
  39. const PaneIDT    kMain_ButtonOK                = 'OK  ';
  40. const PaneIDT    kMain_ButtonCencel            = 'CNCL';
  41. const PaneIDT    kMain_ButtonHelp            = 'HELP';
  42. const PaneIDT    kMain_TouchMeIcon            = 'PICN';
  43. const PaneIDT    kMain_Title                = 'TITL';
  44. const PaneIDT    kMain_Credit                = 'CRYT';
  45. const PaneIDT    kMain_Version                = 'VERS';
  46. const PaneIDT    kMain_ButtonSync            = 'SYNC';
  47.  
  48. const PaneIDT    kMain_CrCheckbox            = 'CRCB';
  49. const PaneIDT    kMain_CrButtonCurrent        = 'CCRB';
  50. const PaneIDT    kMain_CrButtonDirect        = 'CDRB';
  51. const PaneIDT    kMain_CrButtonFirst            = 'C1RB';
  52. const PaneIDT    kMain_CrButtonSecond        = 'C2RB';
  53. const PaneIDT    kMain_CrTextEditDate            = 'CDED';
  54. const PaneIDT    kMain_CrTextEditTime        = 'CTED';
  55. const PaneIDT    kMain_CrButtonNow            = 'CNOW';
  56.  
  57. const PaneIDT    kMain_MdCheckbox            = 'MDCB';
  58. const PaneIDT    kMain_MdButtonCurrent        = 'MCRB';
  59. const PaneIDT    kMain_MdButtonDirect        = 'MDRB';
  60. const PaneIDT    kMain_MdButtonFirst            = 'M1RB';
  61. const PaneIDT    kMain_MdButtonSecond        = 'M2RB';
  62. const PaneIDT    kMain_MdTextEditDate        = 'MDED';
  63. const PaneIDT    kMain_MdTextEditTime        = 'MTED';
  64. const PaneIDT    kMain_MdButtonNow            = 'MNOW';
  65.  
  66. const PaneIDT    kRadioGroupCreation[] = {
  67.     kMain_CrButtonCurrent,
  68.     kMain_CrButtonDirect,
  69.     kMain_CrButtonFirst,
  70.     kMain_CrButtonSecond,
  71.     kNoPaneID };
  72.  
  73. const PaneIDT    kRadioGroupModification[] = {
  74.     kMain_MdButtonCurrent,
  75.     kMain_MdButtonDirect,
  76.     kMain_MdButtonFirst,
  77.     kMain_MdButtonSecond,
  78.     kNoPaneID };
  79.  
  80.  
  81. // Commands and Messages
  82.  
  83. const CommandT    cmd_TouchMeMainWindow        = rPPob_TouchMeMainWindow;
  84. const MessageT    msg_TouchMeMainWindow        = cmd_TouchMeMainWindow;
  85.  
  86.  
  87. const CommandT    cmd_Main_ButtonOK            = msg_OK;
  88. const CommandT    cmd_Main_ButtonCencel        = msg_Cancel;
  89. const CommandT    cmd_Main_ButtonHelp            = 'HELP';
  90.  
  91.  
  92. const MessageT    msg_Main_ButtonOK            = cmd_Main_ButtonOK;
  93. const MessageT    msg_Main_ButtonCencel        = cmd_Main_ButtonCencel;
  94. const MessageT    msg_Main_ButtonHelp            = cmd_Main_ButtonHelp;
  95.  
  96. const MessageT    msg_Main_TouchMeIcon        = 'PICN';
  97. const MessageT    msg_Main_Title                = 'TITL';
  98. const MessageT    msg_Main_ButtonSync        = 'SYNC';
  99.  
  100. const MessageT    msg_Main_CrCheckbox        = 'CRCB';
  101. const MessageT    msg_Main_CrButtonCurrent    = 'CCRB';
  102. const MessageT    msg_Main_CrButtonDirect        = 'CDRB';
  103. const MessageT    msg_Main_CrButtonFirst        = 'C1RB';
  104. const MessageT    msg_Main_CrButtonSecond        = 'C2RB';
  105. const MessageT    msg_Main_CrTextEditDate        = 'CDED';
  106. const MessageT    msg_Main_CrTextEditTime        = 'CTED';
  107. const MessageT    msg_Main_CrButtonNow        = 'CNOW';
  108.  
  109. const MessageT    msg_Main_MdCheckbox        = 'MDCB';
  110. const MessageT    msg_Main_MdButtonCurrent    = 'MCRB';
  111. const MessageT    msg_Main_MdButtonDirect        = 'MDRB';
  112. const MessageT    msg_Main_MdButtonFirst        = 'M1RB';
  113. const MessageT    msg_Main_MdButtonSecond        = 'M2RB';
  114. const MessageT    msg_Main_MdTextEditDate        = 'MDED';
  115. const MessageT    msg_Main_MdTextEditTime        = 'MTED';
  116. const MessageT    msg_Main_MdButtonNow        = 'MNOW';
  117.  
  118.  
  119. // Touch Command or Message
  120. const MessageT    msg_Touch                    = 'TOCH';
  121. const MessageT    msg_SavePrefs                = 'SPRF';
  122. const MessageT    msg_SavePrefsWFrame        = 'SWFR';
  123. const MessageT    msg_LoadPrefs                = 'LPRF';
  124. const MessageT    msg_Help                    = 'HELP';
  125.  
  126.  
  127. // Extra Command orMessage
  128. const MessageT    msg_Main_DroppedFile        = 'DRFL';
  129.  
  130. const MessageT    msg_Main_DroppedFileCrDate    = 'DFCD';
  131. const MessageT    msg_Main_DroppedFileCrTime    = 'DFCT';
  132. const MessageT    msg_Main_DroppedFileMdDate    = 'DFMD';
  133. const MessageT    msg_Main_DroppedFileMdTime    = 'DFMT';
  134.  
  135. const MessageT    msg_Main_DroppedTextCrDate    = 'DTCD';
  136. const MessageT    msg_Main_DroppedTextCrTime    = 'DTCT';
  137. const MessageT    msg_Main_DroppedTextMdDate    = 'DTMD';
  138. const MessageT    msg_Main_DroppedTextMdTime    = 'DTMT';
  139.  
  140.  
  141. // Help window
  142. //const ResIDT        rPPob_HelpWindow            = 2000;
  143. //const MessageT    msg_Open_HelpWindow        = 2000;
  144. //const CommandT    cmd_Open_HelpWindow        = 2000;
  145. //const CommandT    cmd_HelpMenu                = 2010;
  146.  
  147.  
  148.  
  149. #define SignalType_( inType ) \
  150. {\
  151.     Str31    str = "\p1234"; \
  152.     ::BlockMoveData( &(inType), &str[1], 4);\
  153.     SignalPStr_(str);\
  154. }
  155.  
  156. #define SignalNumb_( inNumber ) \
  157. {\
  158.     Str31    str; \
  159.     ::NumToString( inNumber, str );\
  160.     SignalPStr_(str);\
  161. }
  162.  
  163.  
  164. // end of constants
  165.